//
//  SEGIntegralExchangeConfirmViewModel.h
//  SEGViewModel
//
//  Created by 山刘 on 2020/6/1.
//

#import <Foundation/Foundation.h>

#import "SEGIntegralManager.h"
#import "SEGAddressModel.h"
#import "SEGIntegralExchangeConfirmModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface SEGIntegralExchangeConfirmViewModel : NSObject
@property (nonatomic, strong) SEGIntegralManager *integralManager;
@property (nonatomic, strong) SEGAddressModel* addressData;
@property (nonatomic, strong) SEGIntegralExchangeConfirmModel* confirmModel;

- (void)getDefaultAddress:(void(^)(void))completed;

- (void)getExchangeConfirmInfoWithIdString:(NSString*)idString completed:(void(^)(BOOL isSuccessed,NSString *errorMessage,BOOL shoulShowAddress,NSString* coins,NSInteger type))completed;

-(void) requestExchangeConfirmWithWithIdString:(NSString*)idString
                                         count:(NSUInteger)count
                                         phone:(NSString*)phone
                                       account:(NSString*)account
                                     completed:(void(^)(BOOL isSuccessed, NSString *errorMessage))completed;

-(void)requestIntegralExchangeJudgeQuantityWithIdString:(NSString*)idString
                                                  count:(NSUInteger)count
                                              completed:(void(^)(BOOL isSuccessed, NSString *errorMessage, NSString *total))completed;
@end

NS_ASSUME_NONNULL_END
